package fhp.hlhj.giantfold.module

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.BaseModuleInterface
import fhp.hlhj.giantfold.javaBean.ConfigBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * Created by Administrator on 2018\2\27 0027.
 */
class ConfigModule {
    interface OnConfigListener:BaseModuleInterface<ConfigBean>

    fun getConfig(params: HttpParams,listener: OnConfigListener){
        UrlApis.getConfig(params)
                .doOnSubscribe {

                }
                .subscribe {
                    data->
                    listener.onResp(data)
                }

    }
}